package com.by;

import com.by.lb.CustomLoadBalancerConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClients;

/**
 * @author ServivE
 * @version 0.1
 * @className OrderApp
 * @description
 * @date 2024/10/28 19:19
 * @since jdk17
 */
@SpringBootApplication
//@LoadBalancerClient(value = "sc-goods",configuration = {CustomLoadBalancerConfiguration.class})//value 是服务消费者的服务名称
@LoadBalancerClients(defaultConfiguration = {CustomLoadBalancerConfiguration.class})
public class OrderApp {
    public static void main(String[] args) {
        SpringApplication.run(OrderApp.class);
    }
}
